package com.asset.user.sevice.impl;

import com.asset.common.exception.BizException;
import com.asset.user.biz.IUserBiz;
import com.asset.user.dao.entity.UserEntity;
import com.asset.user.dao.mapper.IUserMapper;
import com.asset.user.form.UserForm;
import com.asset.user.sevice.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * todo 描述
 * </p>
 *
 * @author 牧之
 * @date 2024/1/29 14:09
 */
@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserBiz userBiz;

    public UserForm getUserById(Long id){
        return userBiz.getUserById(id);
    }

    @Override
    public UserEntity getUserByTel(String tel) {
        return userBiz.getUserByTel(tel);
    }

    @Override
    public void register(UserEntity userEntity) throws BizException {
        userBiz.register(userEntity);
    }

    @Override
    public List<UserEntity> getUsersByIds(List<Long> userIds) {
        return userBiz.getUsersByIds(userIds);
    }
}
